package net.towee.model.repo;

import java.util.List;

import com.google.gwt.user.client.rpc.IsSerializable;

/**
 * Consists of some add/delete attachment methods of container 
 * @author   c58
 */
public interface AttachmentContainer extends IsSerializable  {
	/**
	 * Delete some attachment of container 
	 * @param attach
	 */
	void removeAttachment(AttachmentIdentity attach);
	
	/**
	 * Add attachment to container
	 * @param attach
	 */
	void addAttachment(AttachmentIdentity attach);
	
	/**
	 * @return list of attachments
	 */
	List<AttachmentIdentity> getAttachmentList();

	/**
	 * @param att
	 * @return true if container have given attachment
	 */
	boolean contains(AttachmentIdentity att);
}
